#coding=utf-8

from bs4 import BeautifulSoup
import time

def ticket(html):
	ret = {}
	soup = BeautifulSoup(html, 'lxml')
	for tag in soup.find(name='error').find_all():
		# print(tag.name)
		ret[tag.name] = tag.string
	return ret

def cur_time():
	return int(time.time() * 1000)